package com.lhkj.iams.wechat.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.github.binarywang.wxpay.bean.notify.WxPayNotifyV3Result;
import com.github.binarywang.wxpay.bean.result.WxPayUnifiedOrderV3Result;
import com.github.binarywang.wxpay.exception.WxPayException;
import com.lhkj.iams.wechat.config.mp.bo.WxParsePayResultBo;
import com.lhkj.iams.wechat.model.dto.WxJsapiOrderRequest;

/**
  * <p>
  *     描述：微信支付
  * </p>
  */
public interface WxMpPayService {

    /**
     * JSAPI下单
     */
    WxPayUnifiedOrderV3Result.JsapiResult jsApiOrder(WxJsapiOrderRequest payRequest) throws WxPayException;

    /**
     * 支付回调
     */
    WxPayNotifyV3Result.DecryptNotifyResult parseOrderNotifyV3Result(WxParsePayResultBo parsePayResultBo) throws WxPayException, JsonProcessingException;

}
